import api from './api.js';

// 获取图片函数
function getMes(url) {
  return new Promise((resolve, reject) => {
    api.get(url)
      .then(res => resolve(res))
      .catch(err => reject(err));
  });
}

export default { getImage };
